package com.ywfStudy.ywfliving.commodity.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ywfStudy.common.utils.PageUtils;
import com.ywfStudy.ywfliving.commodity.entity.AttrgroupEntity;
import com.ywfStudy.ywfliving.commodity.vo.AttrGroupWithAttrsVo;

import java.util.List;
import java.util.Map;

/**
 * 家居商品属性分组
 *
 * @author ywf
 * @email 993530928@qq.com
 * @date 2023-04-13 20:24:58
 */
public interface AttrgroupService extends IService<AttrgroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    //根据自己的逻辑定制
    PageUtils queryPage(Map<String, Object> params,Long categoryId);

    /**
     * 根据分类返回该分类关联的属性组和这些属性组关联的基本属性
     * */
    List<AttrGroupWithAttrsVo> getAttrGroupWithAttrsByCategoryId(Long categoryId);
}

